/**
 * @copyright Copyright (c) 2023..
 *
 * @file    file_uploader.h
 * @brief   描述 文件上传控制接口
 * @author  HC(202206728@any3.com)
 * @version 1.0
 * @date    2023-09-27
 */
#ifndef FILE_UPLOADER_H
#define FILE_UPLOADER_H

#include <string>
#include <eventcommand.h>

namespace DcAdr
{
    class FileUploader : public EventCommand
    {
    public:
        static FileUploader &getInstance();
        FileUploader();
        ~FileUploader();

        void uploadFile(const std::string &taskId, const std::string &files, const std::string &eventCode);

        void findAndWriteTaskidInFile(const std::string &filePath, const std::string &taskId);
    };
}
#endif // FILE_UPLOADER_H